package cn.easy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Sensor implements Serializable {
    private Integer sensorId;

    private Integer sensorType;

    private Integer deviceId;

    private Integer sensorState;

    private Date sensorCreatetime;

    private Date sensorUpdatetime;

    private String sensorName;

    public Integer getSensorId() {
        return sensorId;
    }

    public void setSensorId(Integer sensorId) {
        this.sensorId = sensorId;
    }

    public Integer getSensorType() {
        return sensorType;
    }

    public void setSensorType(Integer sensorType) {
        this.sensorType = sensorType;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getSensorState() {
        return sensorState;
    }

    public void setSensorState(Integer sensorState) {
        this.sensorState = sensorState;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getSensorCreatetime() {
        return sensorCreatetime;
    }

    public void setSensorCreatetime(Date sensorCreatetime) {
        this.sensorCreatetime = sensorCreatetime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getSensorUpdatetime() {
        return sensorUpdatetime;
    }

    public void setSensorUpdatetime(Date sensorUpdatetime) {
        this.sensorUpdatetime = sensorUpdatetime;
    }

    public String getSensorName() {
        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName == null ? null : sensorName.trim();
    }


}